import { reactive } from "vue";

export default function useData() {
  const pageData = reactive({
    columnData: [
      {
        label: "序号",
        prop: "no",
        width: "80px",
        sortable: true
      },
      {
        label: "线路",
        prop: "name",
        width: "100"
      },
      {
        label: "虚拟节点",
        prop: "sentry_ip",
        width: "auto"
      },
      {
        label: "虚开端口",
        prop: "sentry_port",
        width: "100"
      },
      {
        label: "真实IP",
        prop: "forward_ip",
        width: "auto"
      },
      {
        label: "真实端口",
        prop: "forward_port",
        width: "100"
      },
      {
        label: "操作",
        prop: "operation",
        width: "auto"
      }
    ]
  });
  const roleMap = new Map([
    ["系统管理员", "1"],
    ["安全管理员", "2"],
    ["审计管理员", "3"]
  ]);
  return {
    pageData,
    roleMap
  };
}
